package com.breeze.media.audio;

import android.os.Bundle;
import android.view.View;

import androidx.appcompat.app.AppCompatActivity;

import com.breeze.media.R;

public class AudioRecordActivity extends AppCompatActivity {

    private RecordPlayHelper recordPlayHelper;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_audio_record);
        recordPlayHelper = new RecordPlayHelper();
        recordPlayHelper.init(this);
    }

    public void startRecord(View view) {
        recordPlayHelper.startRecord();
    }

    public void stopRecord(View view) {
        recordPlayHelper.stopRecord();
    }

    public void startPlayRecord(View view) {
        recordPlayHelper.startPlay();
    }

    public void startStopRecord(View view) {
        recordPlayHelper.stopPlay();
    }
}